package pl.shenlon.poker.gui;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class PopulationFileFilter extends FileFilter {

	public static final String POPULATION_FILE_EXTENSION = "GPP";

	@Override
	public boolean accept(File f) {
		if (f.isDirectory() || f.getName().endsWith(POPULATION_FILE_EXTENSION)) {
			return true;
		}
		return false;
	}

	@Override
	public String getDescription() {
		return "Pliki populacji (." + POPULATION_FILE_EXTENSION + ")";
	}

}